package edzis.translatebuddy.control.command
{
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import edzis.translatebuddy.model.AppProxy;
	import edzis.translatebuddy.model.DataProxy;
	
	public class DataProxyReadyCommand extends SimpleCommand implements ICommand
	{
		
		override public function execute(notification:INotification):void
		{
			var dataProxy:DataProxy = notification.getBody() as DataProxy ;
			facade.registerProxy( dataProxy );
			
			var appProxy:AppProxy = facade.retrieveProxy(AppProxy.NAME) as AppProxy;
			
			
			appProxy.appState = appProxy.appState;
		
		}
		
	}
}